#!/bin/bash

SCRIPT_NAME=$0
DIR=$(dirname ${SCRIPT_NAME})

# Use winpty
PREFIX=""
which winpty > /dev/null 2>&1
if [ $? -eq 0 ]; then
  PREFIX=winpty
fi

cd ${DIR}/..
${PREFIX} docker-compose exec -d server ./run.sh
